/*
 * @Author: cl
 * @Description:
 * @Date: 2023-05-15 15:59:12
 * @LastEditTime: 2023-06-06 16:48:37
 * @FilePath: \vue3scaffold\src\router\router.ts
 * @LastEditors: cl
 */
import { RouteRecordRaw } from "vue-router";
import Home from "@/views/home.vue";
import Admin from "@/layout/admin.vue";
import Memeber from "@/layout/member.vue";
import Email from "@/views/member/email.vue";
import User from "@/views/member/user.vue";

const routes = [
  {
    //默认路径
    path: "/",
    component: Home,
    children: [
      // {
      //   path: "/admin",
      //   component: Admin,
      //   name: "Admin",
      // },
      // {
      //   path: "/memeber",
      //   component: Memeber,
      //   name: "Memeber",
      //   children: [
      //     {
      //       path: "/memeber/user",
      //       component: User,
      //       name: "User",
      //     },
      //     {
      //       path: "/memeber/email",
      //       component: Email,
      //       name: "Email",
      //     },
      //   ],
      // },
    ],
  },
] as RouteRecordRaw[];

export default routes;
